This repository supports the development of a soil biological activity monitoring method based on buried flatbed scanners. The approach relies on CIS-type flatbed scanners installed vertically in the soil, which continuously capture high-resolution images of the soil matrix in situ. These images enable the observation and tracking of various soil organisms — including invertebrates and roots structures — at fine spatial and temporal resolutions. Coupled with automated image capture (via Raspberry Pi modules) and a suite of image processing and analysis tools, this method offers a non-destructive, long-term window into belowground biological dynamics that traditional sampling approaches cannot easily provide.
The methodology spans three main components: image acquisition (scanner setup, automated capture, and parameterization), image analysis (detection and classification of invertebrates and roots, using both manual workflows and automated deep learning tools), and data analysis (ecological metrics at population, community, and interaction network levels).
This non-invasive, temporally continuous approach opens new possibilities for studying belowground biodiversity and ecosystem functioning across diverse spatial and temporal scales.
The image_acquisition folder contains all code and data associated with the paper “In situ scanner-based imaging to monitor soil mesofauna activity: trade-offs between spatial resolution and temporal frequency”.
A core challenge in deploying buried scanner systems for ecological monitoring is that image-derived activity metrics are not straightforward proxies of biological activity — they are inherently shaped by how images are acquired. This study addresses this critical but rarely quantified dimension by experimentally calibrating the effects of two key acquisition parameters — spatial resolution and capture frequency — on the detectability of soil mesofauna under controlled greenhouse conditions.
Focusing on three major taxonomic groups (Acari, Collembola, and Enchytraeidae), it demonstrates that spatial resolution acts as the dominant driver of detectability, functioning as a size-selective filter that determines which organisms and size classes enter the observation window. Acquisition frequency, in turn, modulates detection magnitude through temporal integration without redefining the detectable size spectrum. Together, these findings provide a mechanistic framework for understanding how protocol choices translate into observable signals, and offer practical guidance for standardising acquisition settings across studies — a prerequisite for robust ecological inference and cross-study comparability in automated soil biodiversity monitoring.
The image_analysis folder contains all code and data associated with the paper “Automated processing for in situ soil monitoring: from raw images to population dynamics”.
While buried scanner systems can generate image datasets of unprecedented spatio-temporal depth, translating this raw visual data into exploitable biological information represents a significant processing bottleneck. undefined
A key methodological contribution is the use of image differencing to reframe the initial detection problem — complicated by very low signal-to-noise ratios in soil imagery — into a simpler classification task, solved by fine-tuning foundation models on limited labelled data. This approach enabled the release of a dataset comprising approximately 600 soil images and over 8 000 labelled invertebrates, spanning taxa with highly varying shapes and sizes (Acari, Collembola, Enchytraeidae, and others). The resulting pipeline delivers reliable population counts across taxa and was applied to analyse soil fauna population dynamics across four scanners over 3 month of continuous monitoring — demonstrating that thoughtfully combining heuristic domain knowledge with modern AI methods can substantially reduce annotation burden while unlocking longitudinal biodiversity analyses at scales previously out of reach.